#-------------------------------------------------
#
# Project created by QtCreator 2020-04-13T16:17:39
#
#-------------------------------------------------

QT += core gui
QT += serialport
RC_ICONS = logo.ico
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = YJ_Viewer
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


SOURCES += \
        main.cpp \
        mainwindow.cpp \
    plcdl.cpp \
    VimbaApi/ApiController.cpp \
    VimbaApi/CameraObserver.cpp \
    VimbaApi/FrameObserver.cpp \
    cameradlg.cpp \
    detectiondlg.cpp \
    Thread/camerathread.cpp \
    Thread/algthread.cpp \
    Thread/plcthread.cpp \
    Thread/cameraworker.cpp \
    Thread/algworker.cpp \
    Thread/plcworker.cpp \
    Alg/measure_cricle.cpp \
    Alg/measure_size.cpp \
    Alg/Defect.cpp \
    logindlg.cpp \
    Alg/Defect.cpp \
    Alg/display.cpp \
    Thread/csvthread.cpp \
    Thread/csvworker.cpp \
    Alg/calibration.cpp \
    consumerdlg.cpp \
    productdlg.cpp \
    procreatedlg.cpp \
    Alg/measure_area.cpp \
    roidlg.cpp \
    Thread/saveimgthread.cpp \
    Thread/saveimgworker.cpp


HEADERS += \
        mainwindow.h \
    plcdl.h \
    VimbaApi/ApiController.h \
    VimbaApi/CameraObserver.h \
    VimbaApi/FrameObserver.h \
    Common/ErrorCodeToMessage.h \
    Common/StreamSystemInfo.h \
    cameradlg.h \
    detectiondlg.h \
    Thread/camerathread.h \
    Thread/algthread.h \
    Thread/plcthread.h \
    Thread/cameraworker.h \
    Thread/algworker.h \
    Thread/plcworker.h \
    Common/common.h \
    Alg/measure_cricle.h \
    Alg/measure_size.h \
    Alg/Defect.h \
    ui_logindlg.h \
    logindlg.h \
    Alg/display.h \
    Thread/csvthread.h \
    Thread/csvworker.h \
    Alg/calibration.h \
    consumerdlg.h \
    productdlg.h \
    procreatedlg.h \
    Alg/measure_area.h \
    roidlg.h \
    Thread/saveimgthread.h \
    Thread/saveimgworker.h


FORMS += \
        mainwindow.ui \
    plcdl.ui \
    cameradlg.ui \
    detectiondlg.ui \
    logindlg.ui \
    consumerdlg.ui \
    productdlg.ui \
    procreatedlg.ui \
    roidlg.ui

RESOURCES += \
    main.qrc \
    plc.qrc \
    camear.qrc


#公共机依赖
#vimbacpp 库
#win32: LIBS += -L'D:/Program Files/Vimba_3.1/VimbaCPP/Lib/Win64/' -lVimbaCPP

#INCLUDEPATH += 'D:/Program Files/Vimba_3.1/VimbaCPP/Lib/Win64'
#DEPENDPATH += 'D:/Program Files/Vimba_3.1/VimbaCPP/Lib/Win64'

#win32:!win32-g++: PRE_TARGETDEPS += 'D:/Program Files/Vimba_3.1/VimbaCPP/Lib/Win64/VimbaCPP.lib'
#else:win32-g++: PRE_TARGETDEPS += 'D:/Program Files/Vimba_3.1/VimbaCPP/Lib/Win64/libVimbaCPP.a'

##VimbaImageTransform库


#win32: LIBS += -L'D:/Program Files/Vimba_3.1/VimbaImageTransform/Lib/Win64/' -lVimbaImageTransform

#INCLUDEPATH += 'D:/Program Files/Vimba_3.1/VimbaImageTransform/Lib/Win64'
#DEPENDPATH += 'D:/Program Files/Vimba_3.1/VimbaImageTransform/Lib/Win64'
#+
#win32:!win32-g++: PRE_TARGETDEPS += 'D:/Program Files/Vimba_3.1/VimbaImageTransform/Lib/Win64/VimbaImageTransform.lib'
#else:win32-g++: PRE_TARGETDEPS += 'D:/Program Files/Vimba_3.1/VimbaImageTransform/Lib/Win64/libVimbaImageTransform.a'

##Vimba包含路径
#INCLUDEPATH += 'D:/Program Files/Vimba_3.1'


##Halcon 库


#win32: LIBS += -L'D:/Program Files/MVTec/HALCON-12.0/lib/x64-win64/' -lhalconcpp

#INCLUDEPATH += 'D:/Program Files/MVTec/HALCON-12.0/lib/x64-win64'
#DEPENDPATH += 'D:/Program Files/MVTec/HALCON-12.0/lib/x64-win64'

#win32:!win32-g++: PRE_TARGETDEPS += 'D:/Program Files/MVTec/HALCON-12.0/lib/x64-win64/halconcpp.lib'
#else:win32-g++: PRE_TARGETDEPS += 'D:/Program Files/MVTec/HALCON-12.0/lib/x64-win64/libhalconcpp.a'

##包含路径
#INCLUDEPATH += 'D:/Program Files/MVTec/HALCON-12.0/include'
#INCLUDEPATH += 'D:/Program Files/MVTec/HALCON-12.0/include/cpp'
#INCLUDEPATH += 'D:/Program Files/MVTec/HALCON-12.0/include/halconcpp'


#笔记本配置
#Halcon 依赖
win32: LIBS += -L$$PWD/'../../../Program Files/MVTec/HALCON-12.0/lib/x64-win64/' -lhalconcpp

INCLUDEPATH += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/lib/x64-win64'
DEPENDPATH += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/lib/x64-win64'

win32:!win32-g++: PRE_TARGETDEPS += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/lib/x64-win64/halconcpp.lib'
else:win32-g++: PRE_TARGETDEPS += $$PWD/'../../../Program Files/MVTec/HALCON-12.0/lib/x64-win64/libhalconcpp.a'

INCLUDEPATH += $$PWD/'../../../../Program Files/MVTec/HALCON-12.0/include'
INCLUDEPATH += $$PWD/'../../../../Program Files/MVTec/HALCON-12.0/include/cpp'
INCLUDEPATH += $$PWD/'../../../../Program Files/MVTec/HALCON-12.0/include/halconcpp'

#VimbaCpp 依赖
INCLUDEPATH += $$PWD/'../../../../Program Files/Allied Vision/Vimba_3.1'

win32: LIBS += -L$$PWD/'../../../Program Files/Allied Vision/Vimba_3.1/VimbaCPP/Lib/Win64/' -lVimbaCPP


INCLUDEPATH += $$PWD/'../../../Program Files/Allied Vision/Vimba_3.1/VimbaCPP/Lib/Win64'
DEPENDPATH += $$PWD/'../../../Program Files/Allied Vision/Vimba_3.1/VimbaCPP/Lib/Win64'

win32:!win32-g++: PRE_TARGETDEPS += $$PWD/'../../../Program Files/Allied Vision/Vimba_3.1/VimbaCPP/Lib/Win64/VimbaCPP.lib'
else:win32-g++: PRE_TARGETDEPS += $$PWD/'../../../Program Files/Allied Vision/Vimba_3.1/VimbaCPP/Lib/Win64/libVimbaCPP.a'

#VimbaImageTransform 依赖
win32: LIBS += -L$$PWD/'../../../Program Files/Allied Vision/Vimba_3.1/VimbaImageTransform/Lib/Win64/' -lVimbaImageTransform


INCLUDEPATH += $$PWD/'../../../Program Files/Allied Vision/Vimba_3.1/VimbaImageTransform/Lib/Win64'
DEPENDPATH += $$PWD/'../../../Program Files/Allied Vision/Vimba_3.1/VimbaImageTransform/Lib/Win64'

win32:!win32-g++: PRE_TARGETDEPS += $$PWD/'../../../Program Files/Allied Vision/Vimba_3.1/VimbaImageTransform/Lib/Win64/VimbaImageTransform.lib'
else:win32-g++: PRE_TARGETDEPS += $$PWD/'../../../Program Files/Allied Vision/Vimba_3.1/VimbaImageTransform/Lib/Win64/libVimbaImageTransform.a'
